﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace oms
{
    /// <summary>
    /// 外观模式，提供访问入口
    /// </summary>
    static class AppFacade
    {
        private static EventControl _event_control;
        private static ManagerContain _manager_contain;
        public static void Init()
        {
            _event_control = new EventControl();
            _manager_contain = new ManagerContain();
        }
        public static void UnInit()
        {
            _event_control = null;
            _manager_contain = null;
        }

        public static ManagerContain Managers
        {
            get { return _manager_contain; }
        }

        public static EventControl EventControl
        {
            get { return _event_control; }
        }
    }
}
